furny.states
Class InitializerUIState

java.lang.Object
  extended by com.jme3.app.state.AbstractAppState
      extended by ga.view.appstate.GUIState
          extended by furny.states.InitializerUIState
All Implemented Interfaces:
com.jme3.app.state.AppState

public class InitializerUIState
extends GUIState

This is an advanced app state which adds gui to the initializer pre state.

Since:
12.08.2012
Author:
Stephan Dreyer

Field Summary
private  com.jme3.audio.AudioRenderer audioRenderer
           
private  InitializerUIController controller
           
private  IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator
           
private  MenuListener menuListener
           
private  de.lessvoid.nifty.Nifty nifty
           
private  com.jme3.niftygui.NiftyJmeDisplay niftyDisplay
           
private  InitializerPreState state
           
 
Fields inherited from class ga.view.appstate.GUIState
assetManager, cam, inputManager, renderManager, stateManager, timer, viewPort
 
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
 
Constructor Summary
InitializerUIState(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator, InitializerPreState state, MenuListener menuListener)
          Instantiates a new initializer ui state.
 
Method Summary
 void cleanup()
           
 InitializerUIController getController()
          Gets the ui controller.
 void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app)
           
 void setEnabled(boolean enabled)
           
 void updateView()
          Updates the view.
 
Methods inherited from class ga.view.appstate.GUIState
finalCleanUp, getCamera
 
Methods inherited from class com.jme3.app.state.AbstractAppState
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

private final InitializerUIController controller

niftyDisplay

private com.jme3.niftygui.NiftyJmeDisplay niftyDisplay

nifty

private de.lessvoid.nifty.Nifty nifty

audioRenderer

private com.jme3.audio.AudioRenderer audioRenderer

evaluator

private final IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator

state

private final InitializerPreState state

menuListener

private MenuListener menuListener
Constructor Detail

InitializerUIState

public InitializerUIState(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator,
                          InitializerPreState state,
                          MenuListener menuListener)
Instantiates a new initializer ui state.

Parameters:
evaluator - the evaluator
state - the state
menuListener - the menu listener
Since:
12.08.2012
Method Detail

getController

public InitializerUIController getController()
Gets the ui controller.

Returns:
the controller
Since:
12.08.2012

initialize

public void initialize(com.jme3.app.state.AppStateManager stateManager,
                       com.jme3.app.Application app)
Specified by:
initialize in interface com.jme3.app.state.AppState
Overrides:
initialize in class GUIState

updateView

public void updateView()
Updates the view.

Since:
12.08.2012

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface com.jme3.app.state.AppState
Overrides:
setEnabled in class GUIState

cleanup

public void cleanup()
Specified by:
cleanup in interface com.jme3.app.state.AppState
Overrides:
cleanup in class com.jme3.app.state.AbstractAppState